package com.yang.design_principle.liskov_substitution_principle;

import org.omg.CORBA.Request;

/**
 * @Description: 测试类
 * @Author: 杨 强
 * @CreateTime: 2022-10-12 15:55
 */
public class Demo {
    public void sendDemo(Transporter transporter){
        Request request = null;
        transporter.sendRequest(request);
        // ....
    }
}

/**
 * 里式替换原则
 */
class CDemo{
    public static void main(String[] args) {
        Demo demo = new Demo();
        demo.sendDemo(new SecurityTransporter(null, "1", "1"));
    }

}